<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/plastic/plastic?id=${c1?.id}"
          method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="plastic"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            <button  type="submit" class="btn-default" data-icon="search"id="btn" >查询</button>&nbsp;
            <button type="button" class="btn-blue"
                    onclick="javascript:bjuiExportExl('#pagerForm', '${request.getContextPath()}/plastic/exportExcel')"
                    data-icon="file-excel-o" title="导出Excel">导出Excel文件</button>&nbsp;
        </div>
    </form>
</div>
<g:if test="${plastic.size > 0}">
    <div class="bjui-pageContent" id="a1">
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <th width="100" >封装形式</th>
                <th width="100">产品名称</th>
                <th width="100">扩散批次</th>
                <th width="100">组装批号</th>
                <th width="100">等待时间(H)</th>
                <th width="100">货架号</th>
            </tr>
            </thead>
            <tbody>
            <g:each in="${plastic}" status="i" var="tableInstance">
                <tr>
                    <td width="100">${tableInstance.RESERVED1}</td>
                    <td width="100">${tableInstance.PART_NAME}</td>
                    <td width="100">${tableInstance.SUBSTRATE_ID1}</td>
                    <td width="100">${tableInstance.LOT_ID}</td>
                    <td width="100">${tableInstance.WAIT_TIME}</td>
                    <td width="100">${tableInstance.RESERVED2}</td>
                </tr>
            </g:each>
            </tbody>
        </table>
    </div>
</g:if>
<script>
    setTimeout(function () {
        //使用  setTimeout（）方法设定定时2000毫秒
        document.getElementById("btn").click();
        /*parent.location.reload();*/
        /*  top.location.reload();*/
    }, 3000000);

</script>
